<?php
require_once 'config/config.php';

$ajax = array(
    "index"                 => ACT. "index",
    "login"                 => ACT. "login",
    "login_user"            => ACT. "login_user",
    "change_pass"           => ACT. "change_pass",    
    "addodd"                => ACT. "add_odd",
    "addoddsx"              => ACT. "add_odd_sx",
    "change_user_info"      => ACT. "change_user_info",
    "admin_login"           => ACT. "admin_login",
    "update_datcuoc"        => ACT. "update_datcuoc",
    "update_all_datcuoc"    => ACT. "update_all_datcuoc",
    "delete_datcuoc"        => ACT. "delete_datcuoc",
    "change_danhsach"       => ACT. "change_danhsach",
    "change_xoso"           => ACT. "change_xoso",
    "trade"                 => ACT. "trade",
);

require_once CTR_PATH . 'Ajax' . EXT;

$act = Core::getParam("act");
$param = Core::getParam();

if($act == '' || $ajax[$act] == ''){
    $ajax[$act] = ACT . "index";
}

Ajax::$ajax[$act]($param);
?>
